{% extends "base.html" %}

{% block title %}{{ assignment.title }}{% endblock %}

{% block javascript %}
<script type="text/javascript" src="/files/lib/jquery/js/jquery-1.3.2.min.js"></script>
<link href="/files/lib/thickbox/thickbox.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="/files/lib/thickbox/thickbox-compressed.js" type="text/javascript"></script>
{% endblock %}

{% block content %}


<a href="{{ group.get_absolute_url }}">Back to Group</a>
{{ assignment.chrome_header }}

<p>
	{{ assignment.description|linebreaks }}
</p>

<h1>Submitted Pages</h1>
{% for page in assignment.pages.all %}
<table>
	<tr>
		<td width=25px>
			<a href='{{ page.get_absolute_url }}'>
			<img src='{{ page.user.get_profile.get_avatar_url }}'
			height=35 width=35></a>
		</td>
		<td >
			<a href="{{ page.get_absolute_url }}?popup=1&height=450&width=700"
				title="Click on the title to see the page normally" class="thickbox">
			{{ page.user.first_name }} {{ page.user.last_name }} :
			{{ page.title }}</a>
		</td>
	</tr>
</table>
{% empty %}
	<p>No students have submitted pages for this assignment yet.
{% endfor %}


{% endblock %}